package com.mjk.common.core.jdbc.ibatis.typehandler.handler;


import com.mjk.common.core.jdbc.ibatis.typehandler.BaseHandler;
import com.mjk.common.util.ObjectUtils;

import java.lang.reflect.Field;

public class FloatHandler implements BaseHandler<Float> {

	@Override
	public String resovleToString(Field f,Float t) {
		if(ObjectUtils.isEmpty(t)){
			return null;
		}
		return Float.toString(t);
	}

	@Override
	public Float resovleResult(Object o) {
		return Float.valueOf(o.toString());
	}

}
